package com.sanwei.taskmanagement.service.impl;

import com.sanwei.taskmanagement.mapper.UserMapper;
import com.sanwei.taskmanagement.model.User;
import com.sanwei.taskmanagement.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Collections;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {

    @Resource
    private UserMapper userMapper;

    @Override
    public List<User> selectUserList() {
        List<User> userList = userMapper.selectUserList();
        return userList;
    }

    @Override
    public User getUserInfoByUsername(String username) {
        return userMapper.getUserInfoByUsername(username);
    }
}
